.class Lcom/instagram/k/a;
.super Ljava/lang/Object;
.source "NotificationCategoryController.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<DataType:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field private final a:Landroid/app/NotificationManager;

.field private final b:Lcom/instagram/k/g;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/k/g",
            "<TDataType;>;"
        }
    .end annotation
.end field

.field private final c:Landroid/content/SharedPreferences;

.field private final d:Ljava/lang/String;

.field private e:Z

.field private f:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<TDataType;>;>;"
        }
    .end annotation
.end field

.field private g:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Landroid/app/NotificationManager;Lcom/instagram/k/g;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 32
    iput-object p1, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    .line 33
    iput-object p2, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    .line 34
    iget-object v0, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v0}, Lcom/instagram/k/g;->b()Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    .line 35
    iget-object v0, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v0}, Lcom/instagram/k/g;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    .line 36
    invoke-static {}, Lcom/b/a/b/dh;->b()Ljava/util/LinkedHashMap;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    .line 37
    invoke-static {}, Lcom/b/a/b/dx;->a()Ljava/util/HashSet;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    .line 39
    iget-object v0, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    const-string v1, "|"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 40
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "category cannot contain delimiter"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 42
    :cond_0
    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 3
    .parameter

    .prologue
    .line 281
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 282
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-static {p1}, Lcom/instagram/k/k;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 285
    return-void
.end method

.method private d()V
    .locals 6

    .prologue
    .line 231
    iget-boolean v0, p0, Lcom/instagram/k/a;->e:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_1

    .line 232
    :cond_0
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "attempted to initialize twice"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 235
    :cond_1
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v0

    .line 236
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 238
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 239
    const-string v3, "|"

    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    .line 240
    const/4 v4, -0x1

    if-eq v3, v4, :cond_2

    .line 242
    const/4 v4, 0x0

    invoke-virtual {v1, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    .line 243
    add-int/lit8 v3, v3, 0x1

    invoke-virtual {v1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    .line 245
    const-string v1, "showing"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 246
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v0, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 250
    :cond_3
    iget-object v1, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    .line 251
    if-nez v1, :cond_4

    .line 252
    invoke-static {}, Lcom/b/a/b/cv;->a()Ljava/util/ArrayList;

    move-result-object v1

    .line 253
    iget-object v5, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v5, v4, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 256
    :cond_4
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    .line 258
    :goto_1
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v4

    if-lt v3, v4, :cond_5

    .line 259
    const/4 v4, 0x0

    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 261
    :cond_5
    iget-object v4, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-interface {v4, v0}, Lcom/instagram/k/g;->b(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    invoke-interface {v1, v3, v0}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 265
    :cond_6
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/k/a;->e:Z

    .line 266
    return-void
.end method

.method private e()V
    .locals 3

    .prologue
    .line 272
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-static {}, Lcom/instagram/k/k;->a()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 275
    return-void
.end method

.method private f()V
    .locals 2

    .prologue
    .line 313
    iget-boolean v0, p0, Lcom/instagram/k/a;->e:Z

    if-nez v0, :cond_0

    .line 314
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "notification category not initialized"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 316
    :cond_0
    return-void
.end method

.method private g()Z
    .locals 3

    .prologue
    .line 319
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-static {}, Lcom/instagram/k/k;->a()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method


# virtual methods
.method declared-synchronized a()Lcom/instagram/k/a;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/instagram/k/a",
            "<TDataType;>;"
        }
    .end annotation

    .prologue
    .line 45
    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/instagram/k/a;->e:Z

    if-nez v0, :cond_0

    .line 46
    invoke-direct {p0}, Lcom/instagram/k/a;->d()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 49
    :cond_0
    monitor-exit p0

    return-object p0

    .line 45
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method a(Ljava/lang/String;)V
    .locals 3
    .parameter

    .prologue
    .line 120
    invoke-direct {p0}, Lcom/instagram/k/a;->f()V

    .line 123
    iget-object v0, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    iget-object v1, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v1, p1}, Lcom/instagram/k/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const v2, 0xfb16

    invoke-virtual {v0, v1, v2}, Landroid/app/NotificationManager;->cancel(Ljava/lang/String;I)V

    .line 126
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 127
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-static {p1}, Lcom/instagram/k/k;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 130
    return-void
.end method

.method a(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 5
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "TDataType;)V"
        }
    .end annotation

    .prologue
    const v4, 0xfb16

    .line 56
    invoke-direct {p0}, Lcom/instagram/k/a;->f()V

    .line 58
    iget-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 59
    if-nez v0, :cond_0

    .line 60
    invoke-static {}, Lcom/b/a/b/cv;->a()Ljava/util/ArrayList;

    move-result-object v0

    .line 61
    iget-object v1, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 63
    :cond_0
    invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 64
    iget-object v1, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-static {p1, v2}, Lcom/instagram/k/k;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v3, p2}, Lcom/instagram/k/g;->a(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 71
    invoke-direct {p0}, Lcom/instagram/k/a;->g()Z

    move-result v1

    if-nez v1, :cond_3

    .line 73
    iget-object v1, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v1}, Ljava/util/Set;->size()I

    move-result v1

    .line 74
    iget-object v2, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v2, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 75
    add-int/lit8 v1, v1, 0x1

    .line 79
    :cond_1
    iget-object v2, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v2, v1}, Lcom/instagram/k/g;->a(I)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 81
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-static {v0}, Lcom/b/a/b/dx;->a(Ljava/lang/Iterable;)Ljava/util/HashSet;

    move-result-object v0

    .line 82
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 83
    invoke-virtual {p0, v0}, Lcom/instagram/k/a;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 86
    :cond_2
    invoke-direct {p0}, Lcom/instagram/k/a;->e()V

    .line 107
    :cond_3
    iget-object v0, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    iget-object v1, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0, v1, p1}, Lcom/instagram/k/g;->a(Ljava/util/Map;Ljava/lang/String;)Landroid/app/Notification;

    move-result-object v0

    .line 110
    iget-object v1, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    iget-object v2, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v2}, Lcom/instagram/k/j;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v4, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V

    .line 114
    :goto_1
    return-void

    .line 89
    :cond_4
    iget-object v1, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v1, p1}, Lcom/instagram/k/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 90
    iget-object v2, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    invoke-interface {v2, p1, v0}, Lcom/instagram/k/g;->a(Ljava/lang/String;Ljava/util/List;)Landroid/app/Notification;

    move-result-object v0

    .line 92
    iget-object v2, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v2, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    .line 93
    invoke-direct {p0, p1}, Lcom/instagram/k/a;->c(Ljava/lang/String;)V

    .line 97
    :cond_5
    iget-object v2, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    invoke-virtual {v2, v1, v4, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V

    goto :goto_1
.end method

.method b()V
    .locals 3

    .prologue
    .line 183
    invoke-direct {p0}, Lcom/instagram/k/a;->f()V

    .line 186
    iget-object v0, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    iget-object v1, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v1}, Lcom/instagram/k/j;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const v2, 0xfb16

    invoke-virtual {v0, v1, v2}, Landroid/app/NotificationManager;->cancel(Ljava/lang/String;I)V

    .line 189
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-static {}, Lcom/instagram/k/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 192
    return-void
.end method

.method b(Ljava/lang/String;)V
    .locals 5
    .parameter

    .prologue
    const v4, 0xfb16

    .line 136
    invoke-direct {p0}, Lcom/instagram/k/a;->f()V

    .line 139
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    .line 140
    iget-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 141
    if-eqz v0, :cond_0

    .line 142
    const/4 v1, 0x0

    :goto_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    if-ge v1, v3, :cond_0

    .line 143
    invoke-static {p1, v1}, Lcom/instagram/k/k;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v3}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 142
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 147
    :cond_0
    invoke-direct {p0}, Lcom/instagram/k/a;->g()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 153
    iget-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 155
    iget-object v0, p0, Lcom/instagram/k/a;->b:Lcom/instagram/k/g;

    iget-object v1, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    const/4 v3, 0x0

    invoke-interface {v0, v1, v3}, Lcom/instagram/k/g;->a(Ljava/util/Map;Ljava/lang/String;)Landroid/app/Notification;

    move-result-object v0

    .line 158
    iget-object v1, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    iget-object v3, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v3}, Lcom/instagram/k/j;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3, v4, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V

    .line 175
    :goto_1
    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 176
    return-void

    .line 164
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/k/a;->b()V

    goto :goto_1

    .line 168
    :cond_2
    iget-object v0, p0, Lcom/instagram/k/a;->a:Landroid/app/NotificationManager;

    iget-object v1, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-static {v1, p1}, Lcom/instagram/k/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v4}, Landroid/app/NotificationManager;->cancel(Ljava/lang/String;I)V

    .line 171
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 172
    invoke-static {p1}, Lcom/instagram/k/k;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v0}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    goto :goto_1
.end method

.method c()V
    .locals 2

    .prologue
    .line 198
    invoke-direct {p0}, Lcom/instagram/k/a;->f()V

    .line 201
    iget-object v0, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-static {v0}, Lcom/b/a/b/dx;->a(Ljava/lang/Iterable;)Ljava/util/HashSet;

    move-result-object v0

    .line 202
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 203
    invoke-virtual {p0, v0}, Lcom/instagram/k/a;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 207
    :cond_0
    invoke-direct {p0}, Lcom/instagram/k/a;->g()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 208
    invoke-virtual {p0}, Lcom/instagram/k/a;->b()V

    .line 212
    :cond_1
    iget-object v0, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 213
    iget-object v0, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    .line 214
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    .prologue
    .line 293
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 294
    const-string v1, "\n"

    invoke-static {v1}, Lcom/b/a/a/v;->a(Ljava/lang/String;)Lcom/b/a/a/v;

    move-result-object v1

    const-string v2, " = "

    invoke-virtual {v1, v2}, Lcom/b/a/a/v;->b(Ljava/lang/String;)Lcom/b/a/a/x;

    move-result-object v1

    .line 296
    const-string v2, "\nmCategoryName: "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 297
    iget-object v2, p0, Lcom/instagram/k/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 298
    const-string v2, "\nmAggregateMode: "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 299
    invoke-direct {p0}, Lcom/instagram/k/a;->g()Z

    move-result v2

    invoke-static {v2}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 300
    const-string v2, "\nmData: \n"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 301
    iget-object v2, p0, Lcom/instagram/k/a;->f:Ljava/util/Map;

    invoke-virtual {v1, v2}, Lcom/b/a/a/x;->a(Ljava/util/Map;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 302
    const-string v2, "\nmShowing: \n"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 303
    iget-object v2, p0, Lcom/instagram/k/a;->g:Ljava/util/Set;

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 304
    const-string v2, "\nmPreferences: \n"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 305
    iget-object v2, p0, Lcom/instagram/k/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/b/a/a/x;->a(Ljava/lang/Iterable;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 306
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
